<?php
namespace App\Http\Controllers\web;
use App\Http\Controllers\Controller;
use DB;

class DownloadController extends Controller{

    public function download()
    {
        $info = DB::table('app_version')
            ->whereNull('deleted_at')
            ->where('is_show',1)
            ->where('client','Android')
            ->orderBy('id','desc')
            ->first();
        $apkUrl = env('HOST')."/".$info->apk_url;
        return view('web/download/download',['apkUrl'=>$apkUrl]);
    }


    public function download_login()
    {
        $info = DB::table('app_version')
            ->whereNull('deleted_at')
            ->where('is_show',1)
            ->where('client','Android')
            ->orderBy('id','desc')
            ->first();
        $apkUrl = env('HOST')."/".$info->apk_url;
        return view('web/download/download-login',['apkUrl'=>$apkUrl]);
    }


}